package cn.nn200433.test.service.impl;

import cn.nn200433.job.annotation.XxlJobPlus;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * 演示服务实现
 *
 * @author nn200433
 * @date 2024-06-14 01:18:00
 */
@Slf4j
@Component
public class DemoServiceImpl {

    @XxlJobPlus(value = "test", cron = "0/30 * * * * ?", desc = "xxlJobPlus 任务")
    public void execute1() {
        log.info("测试 xxlJobPlus 任务。。。");
    }

    @XxlJob(value = "test1")
    public void execute2() {
        log.info("测试 xxlJob 任务。。。");
    }

}
